/* 全局样式 */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
}

/* 广告弹窗样式 */
.ad-popup {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    width: 320px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
    padding: 20px;
    text-align: center;
    display: none;
    z-index: 999;
}

.ad-popup img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
}

.ad-popup-content {
    margin-bottom: 20px;
}

.ad-popup-title {
    font-size: 20px;
    color: #333;
    margin-bottom: 10px;
}

.ad-popup-link {
    display: block;
    color: #007bff;
    text-decoration: none;
    margin-bottom: 10px;
    font-size: 16px;
}

.ad-popup-link:hover {
    text-decoration: underline;
}

.ad-popup-description {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

/* 按钮容器样式 */
.ad-popup-buttons {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

/* 关闭按钮样式 */
.ad-popup-close {
    cursor: pointer;
    background-color: #dc3545;
    color: #f8f9fa;
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 8px 16px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.ad-popup-close:hover {
    background-color: #e9ecef;
    color: #495057;
    border-color: #adb5bd;
}

/* 不再显示按钮样式 */
.ad-popup-never-show {
    cursor: pointer;
    background-color: #6c757d;
    color: white;
    border: 1px solid #dc3545;
    border-radius: 4px;
    padding: 8px 16px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.ad-popup-never-show:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
    display: none;
}

.reset-ad-btn {
    position: fixed;
    bottom: 20px; /* 距离页面底部的距离，可以根据需求调整 */
    right: 20px; /* 距离页面右侧的距离，可按需更改 */
    z-index: 1000; /* 确保按钮在其他元素之上显示，可根据实际情况调整层级 */
    cursor: pointer; /* 鼠标悬停时显示手型指针 */
    background-color: #007bff; /* 按钮背景色，可自行修改 */
    color: white; /* 按钮文字颜色 */
    border: none;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 16px;
    transition: all 0.3s ease; /* 添加过渡效果，使样式变化更平滑 */
}

.reset-ad-btn:hover {
    background-color: #0056b3; /* 鼠标悬停时的背景色变化，营造交互感 */
}